from  selenium import webdriver
import pytest
from page.page import Page


@pytest.fixture(scope='function')
def driver():
    driver = webdriver.Edge()
    driver.maximize_window()
    driver.implicitly_wait(10)
    yield driver
    driver.quit()

def test_01(driver):
    po = Page(driver)
    po.url_loc()
    po.dy_loc()
    assert "百度一下" == po.dy_loc()
    print(po.dy_loc())
